package joomz;

import java.util.List;
import javax.script.Bindings;

public class Player 
    extends Abstract
{

    private Location location;


    public Player(){
        super();
    }


    public Location getLocation(){
        return this.location;
    }
    public boolean setLocation(Location location){
        if (null != location){
            this.location = location;
            return true;
        }
        else
            return false;
    }
    public boolean setLocation(String location){
        return this.setLocation(Location.Set.forName(location));
    }
    public boolean isValid(){
        if (null != this.location)
            return true;
        else
            throw new Game.Invalid("Player missing LOCATION.");
    }
    public void init(Bindings bindings){
        super.init(bindings);
    }
}
